<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>规格(亮度，色温)</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<style type="text/css">
		body,td,th {
			font-size: 12px;
		}
		</style>
		<script type="text/javascript">
			function resultSelectValue()
			{
				var vals = document.getElementsByName("specificationsid");
				for(var items = 0; items < vals.length; items++)
				{
					if(vals[items].checked)
					{
						window.returnValue = vals[items].value;
						window.close();
					}
				}
			}
		</script>
	</head>

	<body>
		<form
			action="<%=request.getContextPath()%>/specification/saveForSpecificationJump.action"
			method="post">
			<input type="hidden" name="resultValue" id="resultValue" value="">
			<table width="80%" border="1" align="center" cellpadding="1"
				cellspacing="1">
				<tr align="center">
					<td colspan="4" align="right">&nbsp;
						
					</td>
				</tr>
				<tr align="center">
					<td width="10%" rowspan="2">&nbsp;
						
					</td>
					<td width="20%" rowspan="2">
						规格名称
					</td>
					<td colspan="2">
						规格
					</td>
				</tr>
				<tr>
					<td width="196" align="center">
						亮度
					</td>
					<td width="185" align="center">
						色温
					</td>
				</tr>
				<c:forEach var="specificationsList"
					varStatus="specificationsListCount" items="${specificationsList}">
					<tr align="center">
						<td width="10%">
							<input type="radio" name="specificationsid"
								value="${specificationsList.specificationsid}~${specificationsList.brightness}~${specificationsList.colortemperature}">
						</td>
						<td width="20%">
							${specificationsList.specificationsname }
						</td>
						<td width="196">
							${specificationsList.brightness }
						</td>
						<td width="185">
							${specificationsList.colortemperature }
						</td>
					</tr>
				</c:forEach>
				<c:if test="${empty specificationsList}">
					<tr align="center">
						<td colspan="4">
							暂无数据
						</td>
					</tr>
				</c:if>
				<tr align="center">
					<td colspan="4">
						<input name="submit" type="button" value="选择" onClick="resultSelectValue()">
					</td>
				</tr>
			</table>

		</form>
	</body>
</html>
